<template>
	<div class="end-list">
		<van-list v-model="loading" :finished="finished" finished-text="没有更多了" @load="onLoad">
			<div class="end-item" v-for="item in list" :key="item.id">
				<div class="content">
					<div class="title">
						{{item.Title}}
					</div>
					<div class="start-time">
						<span>开始时间:</span> {{item.StartTime}}
					</div>
					<div class="end-time">
						<span>结束时间:</span> {{item.EndTime}}
					</div>
					<div class="requirement">
						<span>要 &nbsp; &nbsp;&nbsp;&nbsp; 求:</span>暂无要求
					</div>
					<div class="status">
						<span>状 &nbsp; &nbsp;&nbsp;&nbsp; 态:</span>
						<span class="already-sub" v-if="item.State==1">已提交未批</span>
						<span class="statu no-sub" v-if="item.State == -1 || item.State == 0">未提交</span>
					</div>
					<div class="not-pub" v-if="item.State==1">
						成绩未公布
					</div>
				</div>

			</div>
		</van-list>

		<!-- <div class="no-more">没有更多了...</div> -->
	</div>
</template>

<script>
export default {
	props: ["list",'loading','finished'],
	data() {
		return {
		};
	},
	methods: {
		onLoad() {},
		enterTest(item) {
			// uni.reLaunch({
			// 	url: '/pages/testValid/testValid?id=' + item.id
			// })
			window.console.log(item);
		},
	},
};
</script>

<style lang="scss">
@import "../../index.less";
</style>
